# -*- coding: utf-8 -*-
from common.config import *
from db.mysql import MysqlClient
from common.helper import Helper
class Arrangement( object ):
    def __init__(self):
        self.mysql = MysqlClient()
        self.name = "孝欣保恶性肿瘤医疗险特惠版"
    # 拉取数据
    def pullData(self,data={}):
        for item in Helper.selectData( self.name,self.mysql):
            data["name"] = self.name
            data["company"] = "众安保险"
            data["year"] = item["year"]
            data["socialSec"] = item["socialSec"]
            data["cancerMedical"] = "200w"
            data["expire"] = "1年"
            data["payType"] = "年缴"
            data["extSerious"] = item["ext_medical"]
            data["specialOld"] = item["ext_special"]
            data["price"] = item["price"]
            Helper.mergeTable(self.name, self.mysql, data)
